﻿using System;
using System.Data.Common;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Pub.Class;
using System.Net;

namespace GTS.MiniBox.Page {
    /// <summary>
    /// 全局Global操作
    /// </summary>
    public class Global : System.Web.HttpApplication {
        /// <summary>
        /// Application_Start
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_Start(object sender, EventArgs e) {
            Data.Pool();
            ServicePointManager.DefaultConnectionLimit = 1000;
        }
        /// <summary>
        /// Application_End
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_End(object sender, EventArgs e) {

        }
        /// <summary>
        /// Application_Error
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_Error(object sender, EventArgs e) {
            SiteConfig.WriteLog(Server.GetLastError().GetBaseException());
        }
        /// <summary>
        /// Session_Start
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Session_Start(object sender, EventArgs e) {

        }
        /// <summary>
        /// Session_End
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Session_End(object sender, EventArgs e) {

        }
    }
}
